package amit.ui.table;

import java.util.Comparator;

import amit.ad.AdDetails;

public class AdComperator  implements Comparator {
	 public int compare(Object a, Object b) {
	   AdDetails AdA = (AdDetails)a;
	   AdDetails AdB = (AdDetails)b;
	   
	   String AdAValue = AdA.toString();
	   String AdBValue = AdB.toString();
	   
	   return AdAValue.compareTo(AdBValue);
	 }
	}